/*
 * Created by BAC IT Deustche Bank
 * User: Sergio Vasquez
 * Date: 6/11/2009
 * Time: 4:58 PM
 * 
 * Description:
 * 
 */
using System;
using IScheduler.Core.Managers;
using System.Collections.Generic;

namespace IScheduler.Core
{
	/// <summary>
	/// Description of HolidayManager.
	/// </summary>
	public static class HolidayManager
	{
		/// <summary>
		/// Holiday List
		/// </summary>
		public static IList<Holiday> HolidaysList { 
			get {
				return Manager.HolidayManager.HolidaysList;
			}
			set {
				Manager.HolidayManager.HolidaysList = value;
			}
		}
		
		/// <summary>
		/// Initialize Holiday Manager
		/// </summary>
		public static void InitializeHolidayManager()
		{
			Manager.HolidayManager.InitializeHolidayManager();
		}
		
		/// <summary>
		/// Check if the passed date is holiday.
		/// </summary>
		/// <param name="day"></param>
		/// <returns></returns>
		public static bool IsHoliday(DateTime day)
		{
			return Manager.HolidayManager.IsHoliday(day);
		}
		
		/// <summary>
		/// Check if the current day is holiday.
		/// </summary>
		/// <returns></returns>
		public static bool IsTodayHoliday()
		{
			return Manager.HolidayManager.IsTodayHoliday();
		}
	}
}
